package com.springboot.springboot2.Controller;

import com.springboot.springboot2.bean.Person;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName:
 * @author: CKC
 * @DateTime: 2021/1/28 17:09
 */
@RestController
public class PojoController {
    
    @PostMapping("/saveuser")
    public Map saveUser(Person person){
        Map<String, Object> map=new HashMap<>();
        map.put("person", person);
        return map;
    }
}
